package com.dyj.applet.domain.query;

import com.dyj.common.domain.query.BaseQuery;

public class GetPhoneNumberQuery extends BaseQuery {

    /**
     * 获取手机号的凭证code，通过前端getPhoneNumber组件获取：获取手机号（新方式）（值为返回的code参数）
     */
    private String code;

    public String getCode() {
        return code;
    }

    public GetPhoneNumberQuery setCode(String code) {
        this.code = code;
        return this;
    }

    public static GetPhoneNumberQueryBuilder builder() {
        return new GetPhoneNumberQueryBuilder();
    }

    public static final class GetPhoneNumberQueryBuilder {
        private String code;
        private Integer tenantId;
        private String clientKey;

        private GetPhoneNumberQueryBuilder() {
        }

        public GetPhoneNumberQueryBuilder code(String code) {
            this.code = code;
            return this;
        }

        public GetPhoneNumberQueryBuilder tenantId(Integer tenantId) {
            this.tenantId = tenantId;
            return this;
        }

        public GetPhoneNumberQueryBuilder clientKey(String clientKey) {
            this.clientKey = clientKey;
            return this;
        }

        public GetPhoneNumberQuery build() {
            GetPhoneNumberQuery getPhoneNumberQuery = new GetPhoneNumberQuery();
            getPhoneNumberQuery.setCode(code);
            getPhoneNumberQuery.setTenantId(tenantId);
            getPhoneNumberQuery.setClientKey(clientKey);
            return getPhoneNumberQuery;
        }
    }
}
